package Code.Day6_20240923.com.dx.day06;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @ClassName Person
 * @Description TODO:
 * @Author 12994
 * @Date 2024/9/23 10:10
 * @Version 1.0
 **/
@Setter
@Getter
@AllArgsConstructor
public class Person implements People {
    private String name;
    private String work;


    @Override
    public void speak() {
        System.out.printf("%s正在讲话。\n", this.name);
    }

    @Override
    public void work() {
        System.out.printf("%s正在进行%s的工作。\n", this.name, this.work);
    }
}
